import {
  get,
  jsonPost,
  formPost
} from './http'

const api = import.meta.env.VITE_API_PROXY

// 获取短信验证码
export const sendSmsCodeApi = p => jsonPost(`${api}/mod-smanage/mod/jqrletter/senSmsCode?idcard=${p.idCard}`, {phone: p.phone})
// 提交留言
export const sendRobotMessageApi = p => jsonPost(`${api}/mod-smanage/mod/jqrletter/insertByRobot`, p)
// 文件上传
export const uploadFilesApi = p => formPost(`${api}/mod-smanage/mod/jqrletter/uploadByRobot`, p)
// 我要查询列表
export const getQuestionListApi = p => jsonPost(`${api}/mod-mediate/mod/intelligentInquiry/searchQuestion2`, p)
// 我要查询详情
export const getQuestionDetailsApi = p => get(`${api}/mod-mediate/mod/intelligentInquiry/questionContent`, p)